package com.clouds.wms.service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.clouds.wms.bean.Salmb;
import com.clouds.wms.exception.DatabaseException;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

public interface SalmbService {
	PagesBean getSalmbList(String maaa,String maab,int offset, int pageSize) throws SysException;
	int saveSalmb(Salmb salmb)throws SysException;
	int updateSalmb(Salmb salmb)throws SysException;
	int getMaxMbac()throws SysException;
	int delSalmb(String mbaa, String mbab, String mbacs)throws SysException;
	int changeStatus(String mbaa, String mbab, String status)throws SysException;
	@Transactional(propagation=Propagation.REQUIRED, rollbackFor=DatabaseException.class)
	void delSalmamb(String maaa, String maab)throws SysException;
	void delSalmbAll(String maaa, String maab)throws SysException;
}
